#ifndef ITEMREADER_H
#define ITEMREADER_H

#include <QXmlStreamReader>
#include <QTreeWidget>

class itemReader
{
public:
     itemReader(QTreeWidget* treeWidget);
     bool readFile(QIODevice* device);
     QString errorString() const;
     int getItemCount();

private:
     void readItem(QString type);
     QXmlStreamReader reader;
     QTreeWidget* treeWidget;
     int itemCount;
};

#endif // ITEMREADER_H
